import { getToken, request } from '@inbiz/utils';

const token = getToken();
// 获取流程
export async function completeTask(params?: any) {
  return request(`/edoc2Flow-web/process/commonly/completeTask?orgToken=${token}`, {
    method: 'post',
    data: params,
  });
}

export async function approval(params?: any) {
  return request(`/edoc2Flow-web/process/operation/processCompletion`, {
    method: 'post',
    data: params,
    headers: {
      vVersion: 'v6',
    },
  });
}
